package com.kehutong.auth.entity;


import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.KeyType;
import org.coraframework.orm.annotation.Table;

@Table(value = "t_test_demo", comment="测试信息")
public class TestDemo extends Entity {

    @Column(length = 64, comment = "名称", key = KeyType.KEY_UNIQUE)
    private String name;
    @Column(length = 2, comment = "年龄")
    private Integer age;
    @Column(length = 64, comment = "描述")
    private String desc;

    protected TestDemo(String id) {
        super(id);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
